package com.draemoncode.weixindb.mvc.exception;

/**
 * Created by zhou on 2017/4/9.
 */
public class BusiException extends RuntimeException{

    private Integer code;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public BusiException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public BusiException() {
    }

    public BusiException(String message) {
        super(message);
    }

    public BusiException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public BusiException(String message, Throwable cause) {
        super(message, cause);
    }

    public BusiException(Throwable cause) {
        super(cause);
    }

}
